import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User:华为
 * Date:2024/12/24
 * Time:17:33
 */
public class Text {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        //1.买52张牌
        List<Card> cardList= cardDemo.buyCard();
        System.out.println(cardList);

        //2.洗牌
        cardDemo.shuffle(cardList);
        System.out.println(cardList);

        //3.三人轮流拿5张牌
        List<List<Card>> list= cardDemo.play(cardList);
        for (int i = 0; i <= list.size()-1; i++) {
            System.out.println("第"+ i +"个人的牌"+list.get(i));
        }
        System.out.println("剩下的牌是"+cardList);

    }


}
